function getButton01(txt){
	var w = 60,h = 42;
	var img = datalist['btnImg-1'];
	var btn,up,down,upBitmap,downBitmap,upTxt,downTxt;
	up = new LSprite();
	upBitmap = new LBitmap(new LBitmapData(img,0,0,w,h));
	up.addChild(upBitmap);
	upTxt = new LTextField();
	upTxt.text = txt;
	upTxt.color = "#FFFFFF";
	upTxt.size = 22;
	upTxt.x = (upBitmap.getWidth() - upTxt.getWidth())*0.5;
	upTxt.y = 5;
	up.addChild(upTxt);
	
	down = new LSprite();
	downBitmap = new LBitmap(new LBitmapData(img,0,h,w,h));
	down.addChild(downBitmap);
	downTxt = new LTextField();
	downTxt.text = txt;
	downTxt.color = "#FFFFFF";
	downTxt.size = 22;
	downTxt.x = (downBitmap.getWidth() - downTxt.getWidth())*0.5 + 1;
	downTxt.y = 6;
	down.addChild(downTxt);
	return new LButton(up,down);
}
function getButton02(txt){
	var w = 116,h = 42;
	var img = datalist['btnImg-2'];
	var btn,up,down,upBitmap,downBitmap,upTxt,downTxt;
	up = new LSprite();
	upBitmap = new LBitmap(new LBitmapData(img,0,0,w,h));
	up.addChild(upBitmap);
	upTxt = new LTextField();
	upTxt.text = txt;
	upTxt.color = "#FFFFFF";
	upTxt.size = 22;
	upTxt.x = (upBitmap.getWidth() - upTxt.getWidth())*0.5;
	upTxt.y = 5;
	up.addChild(upTxt);
	
	down = new LSprite();
	downBitmap = new LBitmap(new LBitmapData(img,0,h,w,h));
	down.addChild(downBitmap);
	downTxt = new LTextField();
	downTxt.text = txt;
	downTxt.color = "#FFFFFF";
	downTxt.size = 22;
	downTxt.x = (downBitmap.getWidth() - downTxt.getWidth())*0.5 + 1;
	downTxt.y = 6;
	down.addChild(downTxt);
	return new LButton(up,down);
}
function getButton03(txt){
	var w = 56,h = 32;
	var img = datalist['btnImg-3'];
	var btn,up,down,upBitmap,downBitmap,upTxt,downTxt;
	up = new LSprite();
	upBitmap = new LBitmap(new LBitmapData(img,0,0,w,h));
	up.addChild(upBitmap);
	upTxt = new LTextField();
	upTxt.text = txt;
	upTxt.color = "#FFFFFF";
	upTxt.size = 12;
	upTxt.x = (upBitmap.getWidth() - upTxt.getWidth())*0.5;
	upTxt.y = 7;
	up.addChild(upTxt);
	
	down = new LSprite();
	downBitmap = new LBitmap(new LBitmapData(img,w,0,w,h));
	down.addChild(downBitmap);
	downTxt = new LTextField();
	downTxt.text = txt;
	downTxt.color = "#FFFFFF";
	downTxt.size = 12;
	downTxt.x = (downBitmap.getWidth() - downTxt.getWidth())*0.5 + 1;
	downTxt.y = 8;
	down.addChild(downTxt);
	return new LButton(up,down);
}
function getButton04(txt){
	var w = 87,h = 44;
	var img = datalist['btnImg-4'];
	var btn,up,down,upBitmap,downBitmap,upTxt,downTxt;
	up = new LSprite();
	upBitmap = new LBitmap(new LBitmapData(img,0,0,w,h));
	up.addChild(upBitmap);
	upTxt = new LTextField();
	upTxt.text = txt;
	upTxt.color = "#FFFFFF";
	upTxt.size = 12;
	upTxt.x = (upBitmap.getWidth() - upTxt.getWidth())*0.5;
	upTxt.y = 14;
	up.addChild(upTxt);
	
	down = new LSprite();
	downBitmap = new LBitmap(new LBitmapData(img,w,0,w,h));
	down.addChild(downBitmap);
	downTxt = new LTextField();
	downTxt.text = txt;
	downTxt.color = "#FFFFFF";
	downTxt.size = 12;
	downTxt.x = (downBitmap.getWidth() - downTxt.getWidth())*0.5 + 1;
	downTxt.y = 15;
	down.addChild(downTxt);
	return new LButton(up,down);
}
function getBar(w,h){
	var barWidth = 500,barHeight = 380;
	var img,bar = new LSprite();
	if(w > 530){
		for(var i=15;i<15 + (w-530)*0.5 + 1;i+=100){
			img = new LBitmap(new LBitmapData(datalist['bar-up'],0,0,100,15));
			img.x = i;
			bar.addChild(img);
			img = new LBitmap(new LBitmapData(datalist['bar-down'],0,0,100,15));
			img.x = i;
			img.y = h - 15;
			bar.addChild(img);
		}
		img = new LBitmap(new LBitmapData(datalist['bar-up'],0,0,500,15));
		img.x = (w-500)*0.5;
		bar.addChild(img);
		img = new LBitmap(new LBitmapData(datalist['bar-down'],0,0,500,15));
		img.x = (w-500)*0.5;
		img.y = h - 15;
		bar.addChild(img);
		for(var i=w-15;i>(w+530)*0.5 - 15;i-=100){
			img = new LBitmap(new LBitmapData(datalist['bar-up'],400,0,100,15));
			img.x = i - 100;
			bar.addChild(img);
			img = new LBitmap(new LBitmapData(datalist['bar-down'],400,0,100,15));
			img.x = i - 100;
			img.y = h - 15;
			bar.addChild(img);
		}
	}else{
		img = new LBitmap(new LBitmapData(datalist['bar-up'],(530 - w)*0.5,0,w-30,15));
		img.x = 15;
		bar.addChild(img);
		img = new LBitmap(new LBitmapData(datalist['bar-down'],(530 - w)*0.5,0,w-30,15));
		img.y = h - 15;
		img.x = 15;
		bar.addChild(img);
	}
	
	if(h > 410){
		for(var i=15;i<(h-410)*0.5 + 1;i+=50){
			img = new LBitmap(new LBitmapData(datalist['bar-left'],0,0,15,50));
			img.y = i;
			bar.addChild(img);
			img = new LBitmap(new LBitmapData(datalist['bar-right'],0,0,15,50));
			img.y = i;
			img.x = w - 15;
			bar.addChild(img);
		}
		img = new LBitmap(new LBitmapData(datalist['bar-left'],0,0,15,380));
		img.y = (h-380)*0.5;
		bar.addChild(img);
		img = new LBitmap(new LBitmapData(datalist['bar-right'],0,0,15,380));
		img.y = (h-380)*0.5;
		img.x = w - 15;
		bar.addChild(img);
		for(var i=h-15;i>(h+410)*0.5;i-=50){
			img = new LBitmap(new LBitmapData(datalist['bar-left'],0,330,15,50));
			img.y = i - 50;trace(img.y);
			bar.addChild(img);
			img = new LBitmap(new LBitmapData(datalist['bar-right'],0,330,15,50));
			img.y = i - 50;
			img.x = w - 15;
			bar.addChild(img);
		}
	}else{
		img = new LBitmap(new LBitmapData(datalist['bar-left'],0,(410 - h)*0.5,15,h-30));
		img.y = 15;
		bar.addChild(img);
		img = new LBitmap(new LBitmapData(datalist['bar-right'],0,(410 - h)*0.5,15,h-30));
		img.x = w - 15;
		img.y = 15;
		bar.addChild(img);
	}
	img = new LBitmap(new LBitmapData(datalist['bar-left-up'],0,0,15,15));
	bar.addChild(img);
	img = new LBitmap(new LBitmapData(datalist['bar-right-up'],0,0,15,15));
	img.x = w - 15;
	bar.addChild(img);
	img = new LBitmap(new LBitmapData(datalist['bar-left-down'],0,0,15,15));
	img.y = h - 15;
	bar.addChild(img);
	img = new LBitmap(new LBitmapData(datalist['bar-right-down'],0,0,15,15));
	img.x = w - 15;
	img.y = h - 15;
	bar.addChild(img);
	return bar;
}